// @dart=2.12
import 'package:floor/floor.dart';

@entity
class OfflineSubmitPatrolData{

  int?  status;
  String? patrolName;
  String? patrolRange;
  String? startTime;
  String? endTime;
  int? taskId;
  String? statusName;
  String? require;
  String? resultStatusName;
  int?  executeTaskId;
  int?  pointId;
  String? pointName;
  String? executeDate;
  int? executeBy;
  String? executeByName;
  int?  resultStatus;
  String? feedback;
  int? branchId;
  @primaryKey
  int? id;
  String? createdBy;
  String? createdDate;
  String? updatedBy;
  String? updatedDate;
  String? qrcode;
  String? guardRequire;


  OfflineSubmitPatrolData(
      {this.status,
      this.patrolName,
      this.patrolRange,
      this.startTime,
      this.endTime,
      this.taskId,
      this.statusName,
      this.require,
      this.resultStatusName,
      this.executeTaskId,
      this.pointId,
      this.pointName,
      this.executeDate,
      this.executeBy,
      this.executeByName,
      this.resultStatus,
      this.feedback,
      this.branchId,
      this.id,
      this.createdBy,
      this.createdDate,
      this.updatedBy,
      this.updatedDate,
      this.qrcode,
      this.guardRequire});

  OfflineSubmitPatrolData.fromJson(dynamic json) {
    status = json['status'];
    patrolName = json['patrolName'];
    patrolRange = json['patrolRange'];
    startTime = json['startTime'];
    endTime = json['endTime'];
    taskId = json['taskId'];
    statusName = json['statusName'];
    require = json['require'];
    resultStatusName = json['resultStatusName'];
    executeTaskId = json['executeTaskId'];
    pointId = json['pointId'];
    pointName = json['pointName'];
    executeDate = json['executeDate'];
    executeBy = json['executeBy'];
    executeByName = json['executeByName'];
    resultStatus = json['resultStatus'];
    feedback = json['feedback'];
    branchId = json['branchId'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    qrcode = json['qrcode'];
    guardRequire = json['guardRequire'];
  }

  Map<String, dynamic> toJson() {
    return {
      "status": this.status,
      "patrolName": this.patrolName,
      "patrolRange": this.patrolRange,
      "startTime": this.startTime,
      "endTime": this.endTime,
      "taskId": this.taskId,
      "statusName": this.statusName,
      "require": this.require,
      "resultStatusName": this.resultStatusName,
      "executeTaskId": this.executeTaskId,
      "pointId": this.pointId,
      "pointName": this.pointName,
      "executeDate": this.executeDate,
      "executeBy": this.executeBy,
      "executeByName": this.executeByName,
      "resultStatus": this.resultStatus,
      "feedback": this.feedback,
      "branchId": this.branchId,
      "id": this.id,
      "createdBy": this.createdBy,
      "createdDate": this.createdDate,
      "updatedBy": this.updatedBy,
      "updatedDate": this.updatedDate,
      "qrcode": this.qrcode,
      "guardRequire": this.guardRequire,
    };
  }
}